{% extends "base.html" %}

{% block title %}Login{% endblock %}

{% block template_css %}
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/registration/login.css" />
{% endblock %}

{% block template_js %}
<script type="text/javascript" src="{{ STATIC_URL }}js/login.js"></script>
{% endblock %}

{% block conteudo %}

{% if form.errors %}
<p class="aviso">Usuário e/ou senha inválido(s).</p>
{% endif %}

<div id="login">
    <form method="post" action="{% url "django.contrib.auth.views.login" %}">
        {% csrf_token %}
        
        {{ form.username.label_tag }}
        <input id="id_username" maxlength="254" name="username" value="{% if form.username.value %}{{ form.username.value }}{% endif %}" type="text" autocomplete="off" required="required" placeholder="Seu nome de usuário" autofocus />
        
        {{ form.password.label_tag }}
        <input id="id_password" name="password" type="password" required="required" placeholder="Digite sua senha aqui" />
        
        
        
        <input type="submit" value="Entrar" />
        <input type="hidden" name="next" value="{{ next }}" />
    </form>
</div>

{% endblock %}
